$OpenBSD: patch-sample-config_httpd_conf_in,v 1.4 2017/04/17 17:29:13 rpe Exp $
--- sample-config/httpd.conf.in.orig	Thu Feb 23 21:00:40 2017
+++ sample-config/httpd.conf.in	Fri Apr 14 18:55:59 2017
@@ -5,6 +5,13 @@
 # configuration file.  Customize the paths, etc. as
 # needed to fit your system.
 
+<IfModule !mpm_prefork_module>
+        LoadModule cgid_module /usr/local/lib/apache2/mod_cgid.so
+</IfModule>
+<IfModule mpm_prefork_module>
+        LoadModule cgi_module /usr/local/lib/apache2/mod_cgi.so
+</IfModule>
+
 ScriptAlias @cgiurl@ "@sbindir@"
 
 <Directory "@sbindir@">
@@ -13,25 +20,22 @@ ScriptAlias @cgiurl@ "@sbindir@"
    AllowOverride None
    <IfVersion >= 2.3>
       <RequireAll>
-         Require all granted
-#        Require host 127.0.0.1
+         Require host 127.0.0.1
 
          AuthName "Nagios Access"
          AuthType Basic
-         AuthUserFile @sysconfdir@/htpasswd.users
+         AuthUserFile %%SYSCONFDIR%%/nagios/htpasswd.users
          Require valid-user
       </RequireAll>
    </IfVersion>
    <IfVersion < 2.3>
-      Order allow,deny
-      Allow from all
-#     Order deny,allow
-#     Deny from all
-#     Allow from 127.0.0.1
+      Order deny,allow
+      Deny from all
+      Allow from 127.0.0.1
 
       AuthName "Nagios Access"
       AuthType Basic
-      AuthUserFile @sysconfdir@/htpasswd.users
+      AuthUserFile %%SYSCONFDIR%%/nagios/htpasswd.users
       Require valid-user
    </IfVersion>
 </Directory>
@@ -44,25 +48,22 @@ Alias @htmurl@ "@datadir@"
    AllowOverride None
    <IfVersion >= 2.3>
       <RequireAll>
-         Require all granted
-#        Require host 127.0.0.1
+         Require host 127.0.0.1
 
          AuthName "Nagios Access"
          AuthType Basic
-         AuthUserFile @sysconfdir@/htpasswd.users
+         AuthUserFile %%SYSCONFDIR%%/nagios/htpasswd.users
          Require valid-user
       </RequireAll>
    </IfVersion>
    <IfVersion < 2.3>
-      Order allow,deny
-      Allow from all
-#     Order deny,allow
-#     Deny from all
-#     Allow from 127.0.0.1
+      Order deny,allow
+      Deny from all
+      Allow from 127.0.0.1
 
       AuthName "Nagios Access"
       AuthType Basic
-      AuthUserFile @sysconfdir@/htpasswd.users
+      AuthUserFile %%SYSCONFDIR%%/nagios/htpasswd.users
       Require valid-user
    </IfVersion>
 </Directory>
